Integrand size = 40, antiderivative size = 126 \[ \int \frac {\sec (c+d x) \left (B \sec (c+d x)+C \sec ^2(c+d x)\right )}{(a+a \sec (c+d x))^{5/2}} \, dx=\frac {(5 B+19 C) \arctan \left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {2} \sqrt {a+a \sec (c+d x)}}\right )}{16 \sqrt {2} a^{5/2} d}-\frac {(B-C) \tan (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}+\frac {(5 B-13 C) \tan (c+d x)}{16 a d (a+a \sec (c+d x))^{3/2}} \]
[Out]
Time = 0.41 (sec) , antiderivative size = 126, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {4157, 4093, 4085, 3880, 209} \[ \int \frac {\sec (c+d x) \left (B \sec (c+d x)+C \sec ^2(c+d x)\right )}{(a+a \sec (c+d x))^{5/2}} \, dx=\frac {(5 B+19 C) \arctan \left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {2} \sqrt {a \sec (c+d x)+a}}\right )}{16 \sqrt {2} a^{5/2} d}+\frac {(5 B-13 C) \tan (c+d x)}{16 a d (a \sec (c+d x)+a)^{3/2}}-\frac {(B-C) \tan (c+d x)}{4 d (a \sec (c+d x)+a)^{5/2}} \]
[In]
[Out]
Rule 209
Rule 3880
Rule 4085
Rule 4093
Rule 4157
Rubi steps \begin{align*} \text {integral}& = \int \frac {\sec ^2(c+d x) (B+C \sec (c+d x))}{(a+a \sec (c+d x))^{5/2}} \, dx \\ & = -\frac {(B-C) \tan (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}-\frac {\int \frac {\sec (c+d x) \left (-\frac {5}{2} a (B-C)-4 a C \sec (c+d x)\right )}{(a+a \sec (c+d x))^{3/2}} \, dx}{4 a^2} \\ & = -\frac {(B-C) \tan (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}+\frac {(5 B-13 C) \tan (c+d x)}{16 a d (a+a \sec (c+d x))^{3/2}}+\frac {(5 B+19 C) \int \frac {\sec (c+d x)}{\sqrt {a+a \sec (c+d x)}} \, dx}{32 a^2} \\ & = -\frac {(B-C) \tan (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}+\frac {(5 B-13 C) \tan (c+d x)}{16 a d (a+a \sec (c+d x))^{3/2}}-\frac {(5 B+19 C) \text {Subst}\left (\int \frac {1}{2 a+x^2} \, dx,x,-\frac {a \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{16 a^2 d} \\ & = \frac {(5 B+19 C) \arctan \left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {2} \sqrt {a+a \sec (c+d x)}}\right )}{16 \sqrt {2} a^{5/2} d}-\frac {(B-C) \tan (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}+\frac {(5 B-13 C) \tan (c+d x)}{16 a d (a+a \sec (c+d x))^{3/2}} \\ \end{align*}
Time = 1.01 (sec) , antiderivative size = 131, normalized size of antiderivative = 1.04 \[ \int \frac {\sec (c+d x) \left (B \sec (c+d x)+C \sec ^2(c+d x)\right )}{(a+a \sec (c+d x))^{5/2}} \, dx=\frac {\left (2 \sqrt {2} (5 B+19 C) \text {arctanh}\left (\frac {\sqrt {1-\sec (c+d x)}}{\sqrt {2}}\right ) \cos ^4\left (\frac {1}{2} (c+d x)\right ) \sec ^2(c+d x)+\sqrt {1-\sec (c+d x)} (B-9 C+(5 B-13 C) \sec (c+d x))\right ) \tan (c+d x)}{16 d \sqrt {1-\sec (c+d x)} (a (1+\sec (c+d x)))^{5/2}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(334\) vs. \(2(107)=214\).
Time = 0.91 (sec) , antiderivative size = 335, normalized size of antiderivative = 2.66
method | result | size |
default | \(-\frac {\sqrt {-\frac {2 a}{\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}-1}}\, \sqrt {\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}-1}\, \left (2 B \left (1-\cos \left (d x +c \right )\right )^{3} \sqrt {\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}-1}\, \csc \left (d x +c \right )^{3}-2 C \left (1-\cos \left (d x +c \right )\right )^{3} \sqrt {\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}-1}\, \csc \left (d x +c \right )^{3}+3 B \sqrt {\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}-1}\, \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right )-11 C \sqrt {\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}-1}\, \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right )-5 B \ln \left (\csc \left (d x +c \right )-\cot \left (d x +c \right )+\sqrt {\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}-1}\right )-19 C \ln \left (\csc \left (d x +c \right )-\cot \left (d x +c \right )+\sqrt {\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}-1}\right )\right )}{32 a^{3} d}\) | \(335\) |
parts | \(\frac {B \sqrt {-\frac {2 a}{\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}-1}}\, \sqrt {\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}-1}\, \left (-2 \left (\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}-1\right )^{\frac {3}{2}} \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right )-5 \sqrt {\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}-1}\, \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right )+5 \ln \left (\csc \left (d x +c \right )-\cot \left (d x +c \right )+\sqrt {\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}-1}\right )\right )}{32 d \,a^{3}}+\frac {C \sqrt {-\frac {2 a}{\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}-1}}\, \sqrt {\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}-1}\, \left (2 \sqrt {\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}-1}\, \left (1-\cos \left (d x +c \right )\right )^{3} \csc \left (d x +c \right )^{3}+11 \sqrt {\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}-1}\, \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right )+19 \ln \left (\csc \left (d x +c \right )-\cot \left (d x +c \right )+\sqrt {\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}-1}\right )\right )}{32 d \,a^{3}}\) | \(391\) |
[In]
[Out]
none
Time = 0.31 (sec) , antiderivative size = 475, normalized size of antiderivative = 3.77 \[ \int \frac {\sec (c+d x) \left (B \sec (c+d x)+C \sec ^2(c+d x)\right )}{(a+a \sec (c+d x))^{5/2}} \, dx=\left [-\frac {\sqrt {2} {\left ({\left (5 \, B + 19 \, C\right )} \cos \left (d x + c\right )^{3} + 3 \, {\left (5 \, B + 19 \, C\right )} \cos \left (d x + c\right )^{2} + 3 \, {\left (5 \, B + 19 \, C\right )} \cos \left (d x + c\right ) + 5 \, B + 19 \, C\right )} \sqrt {-a} \log \left (\frac {2 \, \sqrt {2} \sqrt {-a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \cos \left (d x + c\right ) \sin \left (d x + c\right ) + 3 \, a \cos \left (d x + c\right )^{2} + 2 \, a \cos \left (d x + c\right ) - a}{\cos \left (d x + c\right )^{2} + 2 \, \cos \left (d x + c\right ) + 1}\right ) - 4 \, {\left ({\left (B - 9 \, C\right )} \cos \left (d x + c\right )^{2} + {\left (5 \, B - 13 \, C\right )} \cos \left (d x + c\right )\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{64 \, {\left (a^{3} d \cos \left (d x + c\right )^{3} + 3 \, a^{3} d \cos \left (d x + c\right )^{2} + 3 \, a^{3} d \cos \left (d x + c\right ) + a^{3} d\right )}}, -\frac {\sqrt {2} {\left ({\left (5 \, B + 19 \, C\right )} \cos \left (d x + c\right )^{3} + 3 \, {\left (5 \, B + 19 \, C\right )} \cos \left (d x + c\right )^{2} + 3 \, {\left (5 \, B + 19 \, C\right )} \cos \left (d x + c\right ) + 5 \, B + 19 \, C\right )} \sqrt {a} \arctan \left (\frac {\sqrt {2} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \cos \left (d x + c\right )}{\sqrt {a} \sin \left (d x + c\right )}\right ) - 2 \, {\left ({\left (B - 9 \, C\right )} \cos \left (d x + c\right )^{2} + {\left (5 \, B - 13 \, C\right )} \cos \left (d x + c\right )\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{32 \, {\left (a^{3} d \cos \left (d x + c\right )^{3} + 3 \, a^{3} d \cos \left (d x + c\right )^{2} + 3 \, a^{3} d \cos \left (d x + c\right ) + a^{3} d\right )}}\right ] \]
[In]
[Out]
\[ \int \frac {\sec (c+d x) \left (B \sec (c+d x)+C \sec ^2(c+d x)\right )}{(a+a \sec (c+d x))^{5/2}} \, dx=\int \frac {\left (B + C \sec {\left (c + d x \right )}\right ) \sec ^{2}{\left (c + d x \right )}}{\left (a \left (\sec {\left (c + d x \right )} + 1\right )\right )^{\frac {5}{2}}}\, dx \]
[In]
[Out]
\[ \int \frac {\sec (c+d x) \left (B \sec (c+d x)+C \sec ^2(c+d x)\right )}{(a+a \sec (c+d x))^{5/2}} \, dx=\int { \frac {{\left (C \sec \left (d x + c\right )^{2} + B \sec \left (d x + c\right )\right )} \sec \left (d x + c\right )}{{\left (a \sec \left (d x + c\right ) + a\right )}^{\frac {5}{2}}} \,d x } \]
[In]
[Out]
none
Time = 1.58 (sec) , antiderivative size = 170, normalized size of antiderivative = 1.35 \[ \int \frac {\sec (c+d x) \left (B \sec (c+d x)+C \sec ^2(c+d x)\right )}{(a+a \sec (c+d x))^{5/2}} \, dx=\frac {\sqrt {-a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + a} {\left (\frac {2 \, \sqrt {2} {\left (B a^{5} - C a^{5}\right )} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2}}{a^{8} \mathrm {sgn}\left (\cos \left (d x + c\right )\right )} + \frac {\sqrt {2} {\left (3 \, B a^{5} - 11 \, C a^{5}\right )}}{a^{8} \mathrm {sgn}\left (\cos \left (d x + c\right )\right )}\right )} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - \frac {\sqrt {2} {\left (5 \, B + 19 \, C\right )} \log \left ({\left | -\sqrt {-a} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + \sqrt {-a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + a} \right |}\right )}{\sqrt {-a} a^{2} \mathrm {sgn}\left (\cos \left (d x + c\right )\right )}}{32 \, d} \]
[In]
[Out]
Timed out. \[ \int \frac {\sec (c+d x) \left (B \sec (c+d x)+C \sec ^2(c+d x)\right )}{(a+a \sec (c+d x))^{5/2}} \, dx=\int \frac {\frac {B}{\cos \left (c+d\,x\right )}+\frac {C}{{\cos \left (c+d\,x\right )}^2}}{\cos \left (c+d\,x\right )\,{\left (a+\frac {a}{\cos \left (c+d\,x\right )}\right )}^{5/2}} \,d x \]
[In]
[Out]